package cn.tx.service.Impl;

import cn.tx.dubbo.client.OrderInfoService;
import cn.tx.pojo.domain.Order;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;

// dubbo提供的Service注解，用于声明对外暴露服务
// Service引入的是org.apache.dubbo.config.annotation.Service包
@Component
@DubboService
public class OrderServiceImpl implements OrderInfoService {

    @Override
    public Order getOrderInfo() {
        return new Order(1020L,"202211241130888","姜雪宁","15010089114","hello，这里是dubbo-provider-order模块");
    }
}
